import os
import time

os.chdir("/Users/ddy/Pictures")

files = os.listdir(os.getcwd())

for file in files:
    if file.endswith("png"):
        create_time_stamp = os.stat(file).st_birthtime  # create_time
        create_time = time.strftime("%Y%m%d_%H%M%S", time.localtime(create_time_stamp))
        new_name = create_time + '-' + file
        print("file: %s, create at: %s, new name: %s" % (file, create_time, new_name))
        # os.rename(file, create_time + '-' + file)
